#! /usr/local/bin/ruby

# Reads the prefs file 

require 'yaml' 

class Prefs
  def self.read(file_name = File.dirname(__FILE__) + '/prefs.yaml')
    return {} unless File.exists?(file_name)

    File.open(file_name, 'r') { |file| YAML.load(file) }
  end
end

